import request from '@/utils/request'

// 查询商品类别信息列表
export function listGoodsCategory(query) {
  return request({
    url: '/biz/goodsCategory/list',
    method: 'get',
    params: query
  })
}

// 查询商品类别信息详细
export function getGoodsCategory(goodsId) {
  return request({
    url: '/biz/goodsCategory/' + goodsId,
    method: 'get'
  })
}

// 新增商品类别信息
export function addGoodsCategory(data) {
  return request({
    url: '/biz/goodsCategory',
    method: 'post',
    data: data
  })
}

// 修改商品类别信息
export function updateGoodsCategory(data) {
  return request({
    url: '/biz/goodsCategory',
    method: 'put',
    data: data
  })
}

// 删除商品类别信息
export function delGoodsCategory(goodsId) {
  return request({
    url: '/biz/goodsCategory/' + goodsId,
    method: 'delete'
  })
}
